package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * @author Administrator
 */
@Data
@ApiModel("查询热门话题DTO")
public class GetUserDynamicListDTO {

    @ApiModelProperty("分页查询DTO")
    @Valid
    private PageDTO pageDTO;

    /**
     * 初始化pageDTO对象便于进行参数校验
     */
    public GetUserDynamicListDTO(){
        this.pageDTO = new PageDTO();
    }

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    @Min(value = 1,message = "用户id不合法")
    private Integer userId;
}
